<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const num = 100;
      // 输出原始值num的数据类型
      console.log(typeof num); // number

      // 将num转换为字符串
      console.log(String(num));
    </script>
  </body>
</html>
